package com.mini.gateway.core.modules.route.dto;

import com.mini.gateway.core.modules.route.enums.RouteType;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Route
 *
 */
@Data
public class RouteView {

    private Integer id;

    private String name;

    private String path;

    private String uri;

    private Integer order;

    private RouteType routeType;

    private List<String> instanceList = new ArrayList<>();

    public void addInstance(String instance) {
        instanceList.add(instance);
    }

}
